package com.zf.lease.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zf.lease.domain.RoomContract;

/**
 * 房间和契约关系Mapper接口
 *
 * @author ruoyi
 * @date 2024-10-07
 */
public interface RoomContractMapper extends BaseMapper<RoomContract> {
    /**
     * 查询房间和契约关系
     *
     * @param contractId 房间和契约关系主键
     * @return 房间和契约关系
     */
    public RoomContract selectRoomContractByContractId(Long contractId);

    /**
     * 查询房间和契约关系列表
     *
     * @param roomContract 房间和契约关系
     * @return 房间和契约关系集合
     */
    public List<RoomContract> selectRoomContractList(RoomContract roomContract);

    /**
     * 新增房间和契约关系
     *
     * @param roomContract 房间和契约关系
     * @return 结果
     */
    public int insertRoomContract(RoomContract roomContract);

    /**
     * 修改房间和契约关系
     *
     * @param roomContract 房间和契约关系
     * @return 结果
     */
    public int updateRoomContract(RoomContract roomContract);

    /**
     * 删除房间和契约关系
     *
     * @param contractId 房间和契约关系主键
     * @return 结果
     */
    public int deleteRoomContractByContractId(Long contractId);

    /**
     * 批量删除房间和契约关系
     *
     * @param contractIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRoomContractByContractIds(Long[] contractIds);
}